package com.qijian.common.constant;

public class ReConstants {

    /**
     * 分割有效开工令，BL被视为补料的后缀
     * O748BL001会被分割为O748BL
     */
    public static final String Split_ProjectNo = "([A-Za-z]+-)?([A-Za-z]+" +
            "((?<!(SG|sg))|(?<=[A-Za-z]+(SG|sg)))"+
            "((?<!(AH|ah))|(?<=[A-Za-z]+(AH|ah)))"+
            "((?<!(MST|mst))|(?<=[A-Za-z]+(MST|mst)))"+
            "((?<!(HST|hst))|(?<=[A-Za-z]+(HST|hst)))"+
            "((?<!(W|w))|(?<=[A-Za-z]+(W|w)))"+
            "((?<!(E|e))|(?<=[A-Za-z]+(E|e)))"+
            "((?<!(R|r))|(?<=[A-Za-z]+(R|r)))"+
            "((?<!(S|s))|(?<=[A-Za-z]+(S|s)))"+
            "((?<!(DO|do))|(?<=[A-Za-z]+(DO|do)))"+
            "((?<!(MOVW|movw))|(?<=[A-Za-z]+(MOVW|movw)))"+
            "((?<!(AFV|afv))|(?<=[A-Za-z]+(AFV|afv)))"+
            "-?(\\d{3,7}(?![0-9]))|(GW+[0-9]?))([A-Za-z]+-[A-Za-z]{1,2}(?![A-Za-z]))?(H((?![A-Za-z])|BL|bl))?(BL|bl)?(-?\\d{1,2})?(BL|bl)?#?" +
            "(?<!G132)";

    public static void main(String[] args) {
        System.out.println(Split_ProjectNo);
    }
}
